package com.zxy.springboot_vue.service.impl;

import com.zxy.springboot_vue.entity.City;
import com.zxy.springboot_vue.mapper.CityMapper;
import com.zxy.springboot_vue.service.ICityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lenovo
 * @since 2021-10-19
 */
@Service
public class CityServiceImpl extends ServiceImpl<CityMapper, City> implements ICityService {

    @Autowired
    private CityMapper cityMapper;

    //查询城市表
    @Override
    public List<City> getCity(City city) {
        return cityMapper.getCity(city);
    }
}
